﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="AlteracaoCadastral.aspx.cs" Inherits="ProjetoWebsite.AlteracaoCadastral" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Alteração de Cadastro</h1>
    <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
    <asp:TextBox ID="txtNome" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvNome" runat="server" ForeColor="Red" ControlToValidate="txtNome"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblSenha" runat="server" Text="Senha:"></asp:Label>
    <asp:TextBox ID="txtSenha" runat="server" TextMode="Password" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvSenha" runat="server" ForeColor="Red" ControlToValidate="txtSenha"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblEmail" runat="server" Text="E-mail:"></asp:Label>
    <asp:TextBox ID="txtEmail" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ForeColor="Red" ControlToValidate="txtEmail"
        ErrorMessage="* " ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="revEmail" runat="server" ForeColor="Red" ErrorMessage=" E-mail inválido "
        ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        ValidationGroup="groupAlteracao"></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="lblCPF" runat="server" Text="CPF:"></asp:Label>
    <asp:TextBox ID="txtCPF" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCPF" runat="server" ForeColor="Red" ControlToValidate="txtCPF"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblLogradouro" runat="server" Text="Logradouro:"></asp:Label>
    <asp:TextBox ID="txtLogradouro" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvLogradouro" runat="server" ForeColor="Red" ControlToValidate="txtLogradouro"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblNumero" runat="server" Text="Número:"></asp:Label><asp:TextBox
        ID="txtNumero" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvNumero" runat="server" ForeColor="Red" ControlToValidate="txtNumero"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblBairro" runat="server" Text="Bairro:"></asp:Label>
    <asp:TextBox ID="txtBairro" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvBairro" runat="server" ForeColor="Red" ControlToValidate="txtBairro"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblCEP" runat="server" Text="CEP:"></asp:Label>
    <asp:TextBox ID="txtCEP" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCEP" runat="server" ForeColor="Red" ControlToValidate="txtCEP"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblCidade" runat="server" Text="Cidade:"></asp:Label>
    <asp:TextBox ID="txtCidade" runat="server" ValidationGroup="groupAlteracao"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCidade" runat="server" ForeColor="Red" ControlToValidate="txtCidade"
        ErrorMessage="*" ValidationGroup="groupAlteracao"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblEstado" runat="server" Text="Estado:"></asp:Label>
    <asp:DropDownList ID="ddlEstado" runat="server">
        <asp:ListItem Selected="True" Value="AC">AC</asp:ListItem>
        <asp:ListItem Value="AL">AL</asp:ListItem>
        <asp:ListItem Value="AP">AP</asp:ListItem>
        <asp:ListItem Value="AM">AM</asp:ListItem>
        <asp:ListItem Value="BA">BA</asp:ListItem>
        <asp:ListItem Value="CE">CE</asp:ListItem>
        <asp:ListItem Value="DF">DF</asp:ListItem>
        <asp:ListItem Value="ES">ES</asp:ListItem>
        <asp:ListItem Value="GO">GO</asp:ListItem>
        <asp:ListItem Value="MA">MA</asp:ListItem>
        <asp:ListItem Value="MT">MT</asp:ListItem>
        <asp:ListItem Value="MS">MS</asp:ListItem>
        <asp:ListItem Value="MG">MG</asp:ListItem>
        <asp:ListItem Value="PA">PA</asp:ListItem>
        <asp:ListItem Value="PR">PR</asp:ListItem>
        <asp:ListItem Value="PB">PB</asp:ListItem>
        <asp:ListItem Value="PE">PE</asp:ListItem>
        <asp:ListItem Value="PI">PI</asp:ListItem>
        <asp:ListItem Value="RJ">RJ</asp:ListItem>
        <asp:ListItem Value="RN">RN</asp:ListItem>
        <asp:ListItem Value="RS">RS</asp:ListItem>
        <asp:ListItem Value="RO">RO</asp:ListItem>
        <asp:ListItem Value="RR">RR</asp:ListItem>
        <asp:ListItem Value="SC">SC</asp:ListItem>
        <asp:ListItem Value="SP">SP</asp:ListItem>
        <asp:ListItem Value="SE">SE</asp:ListItem>
        <asp:ListItem Value="TO">TO</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblAviso" runat="server" ForeColor="Red" Text="*Preenchimento de campo obrigatório"></asp:Label>
    <br />
    <br />
    <asp:Button ID="btnAlterar" runat="server" Text="Alterar"
        ValidationGroup="groupAlteracao" onclick="btnAlterar_Click" />
</asp:Content>
